#define _CRT_CECURE_NO_WARNINGS 1
#include <stdio.h>
int mystrlen(char* a)
{
	if (*a == '\0')
		return 0;
	else
		return mystrlen(a + 1) + 1;
}
void ex(char* a)
{
	int t,len;
	len = mystrlen(a);
	t = *a;
	*a = *(a + len - 1);
	*(a + len - 1) = '\0';
	if(len>=2)
	{
		ex(a + 1);
	}
	*(a + len - 1) = t;
}
int main()
{
	char arr[] = "lkjhgfdsa";
	ex(arr);
	printf("%s", arr);
	return 0;
}